#pragma once
/*********************************************************/
/*
/*
/*
/*
/*********************************************************/
#include "../stdafx.h"
//#include "Manager.h"
//#include "AnimManager.h"
//#include "WoWLoader.h"
#include "../scene/World.h"
#include "../render/RenderEngine.h"
struct MSG_MODEL
{
    int32 id;
    char* name;
    char* fname;
};
//class ModelManager;
//class FigureManager;
//class TextureManager;
//class AnimManager;

extern LPDIRECT3DDEVICE9 g_pd3dDevice;
class Figure : public Component
{
public:
    Figure();
    ~Figure(void);

    void addedToObject();
    void Init(Message const & msg);
    bool LoadFigure();
    //bool AddModel(int32,int32,char*,Model*);
    //bool AddFigure(int32,int32,const char*,int32,int32,FACE,FIGURE_ATTRIBUTE);
    //void AddFigureToWorld(const Message & msg);
    int32 AddTexture(char*,LPDIRECT3DTEXTURE9);
    bool LoadAnim();
    void UpdateCurrentActionFigure(Message const & msg);
    void PreFigureMove(Message const & msg);
    void FigureMove(Message const & msg);
    void RenderFigure(Message const & msg);
    void AddModel(int32,char*,char*);
private:
    int32 m_curFid;
    //ModelManager* m_mManager;
    //FigureManager* m_fManager;
    //TextureManager* m_tManager;
};